package org.zoomdev.zoom.web.action;

public interface ActionInterceptor extends PreParseInterceptor, ParseInterceptor, ErrorInterceptor, ResultInterceptor, CompleteInterceptor, BeforeInvokeInterceptor {

    @Override
    default boolean whenError(ActionContext context) throws Exception {
        return false;
    }

    @Override
    default void whenResult(ActionContext context) throws Exception {

    }

    @Override
    default void beforeInvoke(ActionContext context) throws Exception {

    }

    @Override
    default boolean preParse(ActionContext context) throws Exception {
        return false;
    }

    @Override
    default void complete(ActionContext context) throws Exception {

    }

    @Override
    default void parse(ActionContext context) throws Exception {

    }
}
